package rg.edu.ap.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import rg.edu.ap.dao.MerchantDao;
import rg.edu.ap.po.Merchant;
import rg.edu.ap.service.MerchantService;
@Service
public class MerchantServiceImpl implements MerchantService{
	
	@Autowired
	private MerchantDao merchantdao;
	
	public int addMerchant(Merchant merchant) {
		return merchantdao.addMerchant(merchant);
	}
	
	public Merchant loginMerchant(Merchant merchant) {
		return merchantdao.loginMerchant(merchant);
	}
}
